#include"string1.h"

int main()
{
	String name;
	String max, fir;
	String get;
	const int count = 5;
	
	cout << "Your name:";
	cin >> name;
	cout << "please enter " << count << " sayings:" << endl;
	for (int i = 0; i < count; i++)
	{
		cout << "num." << i + 1 << ":";
		cin >> get;
		if (i == 0)
			fir = get;
		if (get.length() > max.length())
			max = get;
		if (get < fir)
			fir = get;
	}
	cout << "longest:" << max << endl;
	cout << "first:" << fir << endl;
	
	String tog = max + fir;
	cout << "together:" << tog << endl;
	cout << "chars:" << tog.length() << endl;
	cout << "numbres of h:" << tog.countch('h') << endl;
	tog.Stringup();
	cout << "toupper:" << tog << endl;
	tog.Stringlow();
	cout << "lower:" << tog << endl;
	return 0;
}
